<!DOCTYPE html>

<html lang="en"  xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>火灾物证鉴定系统</title>
    <link rel="stylesheet" href="/css/login2.css">

</head>
<body style="background-color: #4d5685">
    <div class="login" style="background-color: #4d5685">
        <div class="login_title">
            <p><img src="/img/jinghui.png" style="width:80px; height:80px; margin-right:30px;"/>火灾物证鉴定系统</p>
        </div>

        <div class="login_main" style="margin-left:-72px">
            <div class="main_left" >
                <img src="/img/u3.webp" style="margin-left: 150px;margin-bottom: 20px;padding-bottom: 20px;height: 360px;width: 560px;" alt="">
            </div>

            <div class="main_right" style="height: 360px">
                <div class="right_title" style="color: #e26141; font-size: 22px">用户登录</div>
                <form th:action="@{/user/login}" method="post" id="loginForm">
                    <div class="username">
                        <img src="/img/username.png" alt="">
                        <input name="username" type="text" placeholder="请输入用户名" required = required>
                    </div>
                    <div class="password">
                        <img src="/img/password.png" alt="">
                        <input name="password" type="password" placeholder="请输入密码" required = required>
                    </div>
                    <div class="yes_login">
                        <a id="loginon" onclick="document:loginForm.submit()" style="background-color: #e26141">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
                        &nbsp;<a th:href="@{../user/register.html}" style="background-color: #e26141">注&nbsp;&nbsp;&nbsp;&nbsp;册</a>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script th:inline="javascript">
        $(document).keydown(function (e) {
            if ((e.keyCode || e.which) === 13) {
                document.getElementById("loginon").click();
            }
        });
        a=[[${msg}]]
        if(a!=null)
        {alert(a);}
    </script>
</body>
</html>